﻿@model GameSchoolWeb.Models.ExamIndexModelView
<script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Próf</legend>
        @Html.HiddenFor(model => model.Exam.id)
        <div class="editor-label">
            @Html.LabelFor(model => model.Exam.strTitle)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Exam.strTitle)
            @Html.ValidationMessageFor(model => model.Exam.strTitle)
        </div>
        <!--
            <div class="editor-label">
                @Html.LabelFor(model => model.Exam.dDateAdded)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Exam.dDateAdded)
                @Html.ValidationMessageFor(model => model.Exam.dDateAdded)
            </div>
-->
        <div class="editor-label">
            @Html.LabelFor(model => model.Exam.nPoints)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Exam.nPoints)
            @Html.ValidationMessageFor(model => model.Exam.nPoints)
        </div>
        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}
<p>
    @Html.ActionLink("Bæta við spurningu", "AddQuestions", new { id = Model.Exam.id })
</p>
<div>
    @Html.ActionLink("Back to List", "Index")
</div>
